<!doctype html>
<html>

	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="../../css/mui.css" rel="stylesheet" />
		<link href="../../fonticon/iconfont.css" rel="stylesheet" />
		
		<style>
			/* .mui-table-view-cell {
				height: 80px;
			}
			
			.mui-icon {
				height: 60px;
			} */
		</style>
	</head>

	<body>
		
		<div id="slider" class="mui-slider">
		  <div class="mui-slider-group">
			<!-- 第一张 -->
			<div class="mui-slider-item">
			  <a href="#">
				<img src="../../images/1.jpg">
			  </a>
			</div>
		  </div>
		</div>
		
		<ul class="mui-table-view mui-row">
		    <li class="mui-table-view-cell">
				便捷服务
		    </li>
		    <li class="mui-table-view-cell">
		        <a id="apply" class="mui-navigate-right">
					<span class="mui-icon iconfont icon-yuyue"></span>
					线上预约申请
				</a>
		    </li>
			<li class="mui-table-view-cell">
			    <a id="internshipReport" class="mui-navigate-right">
					<span class="mui-icon iconfont icon-tianxie"></span>
					填写实习报告
				</a>
			</li>
			<li class="mui-table-view-cell">
			    <a id="punchTheClock" class="mui-navigate-right">
					<span class="mui-icon iconfont icon-daka"></span>
					每日打卡
				</a>
			</li>
			<li class="mui-table-view-cell">
			    <a id="download" class="mui-navigate-right">
					<span class="mui-icon iconfont icon-xiazai"></span>
					资料下载
				</a>
			</li>
			<li class="mui-table-view-cell">
			    <a id="seeNotice" class="mui-navigate-right">
					<span class="mui-icon iconfont icon-gonggao"></span>
					查看公告
				</a>
			</li>
			<li class="mui-table-view-cell">
			    <a id="questionnaire" class="mui-navigate-right">
					<span class="mui-icon iconfont icon-icon_tiaochawenjuan"></span>
					问卷填写
				</a>
			</li>
		</ul>
		
		<script src="../../js/mui.js"></script>
		<script src="../../js/app.js"></script>
		
		<script type="text/javascript">
			mui.init()
			
			mui.plusReady(function () {
				
				var user = app.getGlobalUserInfo();
				
				// 页面跳转 问卷填写
				document.getElementById("questionnaire").addEventListener("tap", function() {
					mui.openWindow({
						url: "studentQuestionnaire.html", 
						id: "studentQuestionnaire.html",
						createNew: true
					});
				});
				// 页面跳转 查看公告
				document.getElementById("seeNotice").addEventListener("tap", function() {
					mui.openWindow({
						url: "studentNotice.html", 
						id: "studentNotice.html",
						createNew: true
					});
				});
				// 页面跳转 学生每日打卡
				document.getElementById("punchTheClock").addEventListener("tap", function() {
					mui.openWindow({
						url: "studentPunchTheClock.html", 
						id: "studentPunchTheClock.html",
						createNew: true
					});
				});
				// 页面跳转 下载资料
				var download = document.getElementById("download");
				download.addEventListener("tap", function() {
					mui.openWindow({
						url: "studentDownload.html",
						id: "studentDownload.html"
					});
				});
				
			    // 页面跳转 填写实习报告
			    var internshipReport = document.getElementById("internshipReport");
			    internshipReport.addEventListener("tap", function() {
					
					var ir_e_id = "";
					var ir_content = "";
					var ir_mark = "";
					var ir_remark = "";
					// 获取实习企业编号
					mui.ajax(app.serverUrl + "/user/student/query_student_pass_company_id?user_id=" + user
						.user_id, {
							data: {},
							dataType: 'json', //服务器返回json格式数据
							type: 'post', //HTTP请求类型
							timeout: 10000, //超时时间设置为10秒；
							async: false,
							headers: {
								'Content-Type': 'application/json'
							},
							success: function(data) {
								ir_e_id = data.data;
							}
						});
						
					mui.ajax(app.serverUrl + "/user/student/student_query_report?user_id=" + user
						.user_id, {
							data: {},
							dataType: 'json', //服务器返回json格式数据
							type: 'post', //HTTP请求类型
							timeout: 10000, //超时时间设置为10秒；
							async: false,
							headers: {
								'Content-Type': 'application/json'
							},
							success: function(data) {
								ir_content = data.data.ir_content;
								ir_mark = data.data.ir_mark;
								ir_remark = data.data.ir_remark;
							}
						});
					
			    	mui.openWindow({
			    		url: "studentInternshipReport.html",
			    		id: "studentInternshipReport.html",
						extras: {
							ir_e_id: ir_e_id,
							ir_content: ir_content,
							ir_mark: ir_mark,
							ir_remark: ir_remark
						}
			    	});
			    });
				
				// 页面跳转 线上预约申请
				var apply = document.getElementById("apply");
				apply.addEventListener("tap", function() {
					mui.openWindow({
						url: "studentApply.html",
						id: "studentApply.html"
					});
				});
			});
		</script>
	</body>

</html>
